package com.atguigu.msmservice.controller;

import com.atguigu.commonutils.result.R;
import com.atguigu.msmservice.service.SendMailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kabuda
 * @create 2023-05-12 16:00
 */
@RestController
@RequestMapping("edumsm/send")
public class QQMailController {
    @Autowired
    private SendMailService sendMailService;
    @GetMapping("qq")
    public R sendMail(@RequestParam("mobile") String toMail){
        sendMailService.sendSimpleMail(toMail);
        return R.ok();
    }
}
